package com.xiaoyu.lanling.feature.newtips.datamodels

import com.xiaoyu.lanling.feature.newtips.datamodels.NewTipType.NewTipTypeDef
import java.util.concurrent.atomic.AtomicInteger

class NewTipItem(@field:NewTipTypeDef @param:NewTipTypeDef val type: String) {

    private val mNum = AtomicInteger()

    fun updateNum(num: Int): Boolean {
        return mNum.getAndSet(num) != num
    }

    val num: Int
        get() = mNum.get()

}